From: Keir Fraser Date: Fri, 23 Oct 2009 09:12:52 +0000 (+0100) Subject: xsm: Corrected check in io_has_perm() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13179 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cd5cf5efb220ffbb375ccf6318cc2ce375461b25;p=xen.git xsm: Corrected check in io_has_perm() Fix the check in io_has_perm() to correctly check the start and end of I/O Memory. Signed-off-by : George Coker Signed-off-by : Paul Nuzzi --- diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c index 2b996c5d1e..c2aaec80b6 100644 --- a/xen/xsm/flask/hooks.c +++ b/xen/xsm/flask/hooks.c @@ -1176,7 +1176,7 @@ static int io_has_perm(struct domain *d, char *name, unsigned long s, return rc; if ( s != e ) - rc = iomem_has_perm(d, s, access); + rc = iomem_has_perm(d, e, access); } else if ( strcmp(name, "Interrupts") == 0 ) {